package controller

import (
	"first-service/src/response"
	"github.com/gin-gonic/gin"
)

// IHelloController 定义接口
type IHelloController interface {
	SayHello(c *gin.Context)
}

type HelloController struct {
}

func NewHelloController() IHelloController {
	controller := &HelloController{}
	return controller
}

func (hc *HelloController) SayHello(c *gin.Context) {
	response.Success(c, nil, "golang hello world")
}
